home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Periodicals / develop / develop Issue 18 / develop 18 code / OSA Sample / SimpliFace source code notes < prev    next >
Unknown  |  1994-01-28  |  2.4 KB  |  [QUIL/quil]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default


id metadata
keyvalue
macFileType[QUIL]
macFileCreator[quil]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 00 00 08 51 53 69 | 6d 70 6c 69 46 61 63 65 |.....QSi|mpliFace|
|00000010| 20 76 65 72 73 69 6f 6e | 20 31 2e 30 62 32 3a 20 | version| 1.0b2: |
|00000020| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 6e 6f 74 65 |source c|ode note|
|00000030| 73 0d 32 37 20 4a 61 6e | 75 61 72 79 20 31 39 39 |s.27 Jan|uary 199|
|00000040| 34 0d 0d 44 65 76 65 6c | 6f 70 65 64 20 62 79 3a |4..Devel|oped by:|
|00000050| 09 0d 09 09 0d 09 09 50 | 61 75 6c 20 47 20 53 6d |.......P|aul G Sm|
|00000060| 69 74 68 20 28 63 6f 6d | 6d 73 74 61 6c 6b 20 68 |ith (com|mstalk h|
|00000070| 71 20 26 20 46 75 6c 6c | 20 4d 6f 6f 6e 20 53 6f |q & Full| Moon So|
|00000080| 66 74 77 61 72 65 2c 20 | 49 6e 63 29 0d 0d 48 6f |ftware, |Inc)..Ho|
|00000090| 77 20 74 6f 20 6d 61 6b | 65 20 63 6f 6e 74 61 63 |w to mak|e contac|
|000000a0| 74 3a 0d 09 09 79 6f 75 | 20 63 61 6e 20 6c 65 61 |t:...you| can lea|
|000000b0| 76 65 20 6d 65 73 73 61 | 67 65 73 20 61 74 20 28 |ve messa|ges at (|
|000000c0| 55 4b 29 3a 20 30 37 32 | 37 20 38 34 34 32 33 32 |UK): 072|7 844232|
|000000d0| 3b 20 28 55 53 29 3a 20 | 34 30 38 20 32 35 33 20 |; (US): |408 253 |
|000000e0| 37 31 39 39 0d 09 09 42 | 55 54 20 49 20 70 72 65 |7199...B|UT I pre|
|000000f0| 66 65 72 20 74 6f 20 62 | 65 20 63 6f 6e 74 61 63 |fer to b|e contac|
|00000100| 74 65 64 20 62 79 20 65 | 2d 6d 61 69 6c 0d 09 09 |ted by e|-mail...|
|00000110| 41 70 70 6c 65 4c 69 6e | 6b 3a 20 09 53 4d 49 54 |AppleLin|k: .SMIT|
|00000120| 48 2e 50 47 0d 09 09 49 | 6e 74 65 72 6e 65 74 3a |H.PG...I|nternet:|
|00000130| 20 09 53 4d 49 54 48 2e | 50 47 40 61 70 70 6c 65 | .SMITH.|PG@apple|
|00000140| 6c 69 6e 6b 2e 61 70 70 | 6c 65 2e 63 6f 6d 0d 0d |link.app|le.com..|
|00000150| 0d 53 69 6d 70 6c 69 46 | 61 63 65 20 72 65 71 75 |.SimpliF|ace requ|
|00000160| 69 72 65 73 20 41 70 70 | 6c 65 53 63 72 69 70 74 |ires App|leScript|
|00000170| 20 76 65 72 73 69 6f 6e | 20 31 2e 31 2e 20 49 74 | version| 1.1. It|
|00000180| 20 69 73 20 61 20 66 61 | 69 72 6c 79 20 62 61 73 | is a fa|irly bas|
|00000190| 69 63 20 73 63 72 69 70 | 74 61 62 6c 65 20 26 20 |ic scrip|table & |
|000001a0| 61 74 74 61 63 68 61 62 | 6c 65 20 41 45 20 4f 62 |attachab|le AE Ob|
|000001b0| 6a 65 63 74 20 4d 6f 64 | 65 6c 20 63 6f 6d 70 6c |ject Mod|el compl|
|000001c0| 69 61 6e 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |iant app|lication|
|000001d0| 20 28 6e 6f 74 20 61 6c | 6c 20 74 68 65 20 53 74 | (not al|l the St|
|000001e0| 61 6e 64 61 72 64 20 53 | 75 69 74 65 73 20 61 72 |andard S|uites ar|
|000001f0| 65 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 2c 20 62 |e implem|ented, b|
|00000200| 75 74 20 79 6f 75 20 67 | 65 74 20 74 68 65 20 66 |ut you g|et the f|
|00000210| 72 61 6d 65 77 6f 72 6b | 20 66 6f 72 20 74 68 65 |ramework| for the|
|00000220| 6d 29 2e 20 49 74 20 6f | 66 66 65 72 73 20 73 69 |m). It o|ffers si|
|00000230| 6d 70 6c 65 20 77 69 6e | 64 6f 77 20 62 75 69 6c |mple win|dow buil|
|00000240| 64 69 6e 67 20 66 61 63 | 69 6c 69 74 69 65 73 3a |ding fac|ilities:|
|00000250| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 69 74 20 | you can| use it |
|00000260| 74 6f 20 63 6f 6e 73 74 | 72 75 63 74 20 73 63 72 |to const|ruct scr|
|00000270| 69 70 74 65 64 20 77 69 | 6e 64 6f 77 73 20 74 68 |ipted wi|ndows th|
|00000280| 61 74 20 63 6f 6e 74 61 | 69 6e 20 74 65 78 74 20 |at conta|in text |
|00000290| 66 69 65 6c 64 73 20 28 | 6e 6f 74 20 65 64 69 74 |fields (|not edit|
|000002a0| 61 62 6c 65 20 74 65 78 | 74 2c 20 79 65 74 29 20 |able tex|t, yet) |
|000002b0| 61 6e 64 20 62 75 74 74 | 6f 6e 73 2e 0d 0d 54 6f |and butt|ons...To|
|000002c0| 20 62 75 69 6c 64 20 53 | 69 6d 70 6c 69 46 61 63 | build S|impliFac|
|000002d0| 65 2c 20 79 6f 75 20 6d | 75 73 74 20 68 61 76 65 |e, you m|ust have|
|000002e0| 20 4d 50 57 20 33 2e 33 | 2e 31 20 61 6e 64 20 4d | MPW 3.3|.1 and M|
|000002f0| 50 57 20 43 2b 2b 20 28 | 74 68 65 20 6c 61 74 65 |PW C++ (|the late|
|00000300| 73 74 20 76 65 72 73 69 | 6f 6e 73 20 66 72 6f 6d |st versi|ons from|
|00000310| 20 45 54 4f 23 31 32 29 | 2e 20 59 6f 75 20 61 6c | ETO#12)|. You al|
|00000320| 73 6f 20 6e 65 65 64 20 | 74 68 65 20 41 70 70 6c |so need |the Appl|
|00000330| 65 53 63 72 69 70 74 20 | 68 65 61 64 65 72 20 66 |eScript |header f|
|00000340| 69 6c 65 73 20 74 6f 20 | 62 65 20 6c 6f 61 64 65 |iles to |be loade|
|00000350| 64 20 69 6e 74 6f 20 74 | 68 65 20 61 70 70 72 6f |d into t|he appro|
|00000360| 70 72 69 61 74 65 20 4d | 50 57 20 66 6f 6c 64 65 |priate M|PW folde|
|00000370| 72 73 2e 20 53 65 74 20 | 74 68 65 20 64 69 72 65 |rs. Set |the dire|
|00000380| 63 74 6f 72 79 20 74 6f | 20 74 68 65 20 22 53 69 |ctory to| the "Si|
|00000390| 6d 70 6c 69 46 61 63 65 | 5f 44 65 76 22 20 64 69 |mpliFace|_Dev" di|
|000003a0| 72 65 63 74 6f 72 79 2c | 20 61 6e 64 20 72 75 6e |rectory,| and run|
|000003b0| 20 74 68 65 20 22 62 75 | 69 6c 64 53 69 6d 70 6c | the "bu|ildSimpl|
|000003c0| 69 46 61 63 65 22 20 73 | 68 65 6c 6c 20 73 63 72 |iFace" s|hell scr|
|000003d0| 69 70 74 2e 20 48 6f 70 | 65 66 75 6c 6c 79 2c 20 |ipt. Hop|efully, |
|000003e0| 49 20 68 61 76 65 6e 27 | 74 20 6d 69 73 73 65 64 |I haven'|t missed|
|000003f0| 20 61 6e 79 74 68 69 6e | 67 20 6f 75 74 2e 20 0d | anythin|g out. .|
|00000400| 0d 54 68 65 20 70 72 6f | 67 72 61 6d 20 69 73 20 |.The pro|gram is |
|00000410| 62 61 73 65 64 20 61 72 | 6f 75 6e 64 20 61 20 43 |based ar|ound a C|
|00000420| 2b 2b 20 66 72 61 6d 65 | 77 6f 72 6b 2c 20 73 69 |++ frame|work, si|
|00000430| 6d 69 6c 61 72 20 74 6f | 20 74 68 61 74 20 75 73 |milar to| that us|
|00000440| 65 64 20 69 6e 20 74 68 | 65 20 27 41 53 4c 4d 27 |ed in th|e 'ASLM'|
|00000450| 20 73 61 6d 70 6c 65 20 | 61 70 70 6c 69 63 61 74 | sample |applicat|
|00000460| 69 6f 6e 73 20 28 41 53 | 4c 4d 20 69 73 20 6e 6f |ions (AS|LM is no|
|00000470| 74 20 75 73 65 64 20 69 | 6e 20 53 69 6d 70 6c 69 |t used i|n Simpli|
|00000480| 46 61 63 65 29 2e 20 49 | 20 6c 69 6b 65 20 74 6f |Face). I| like to|
|00000490| 20 75 73 65 20 6c 69 67 | 68 74 77 65 69 67 68 74 | use lig|htweight|
|000004a0| 20 43 2b 2b 20 63 6c 61 | 73 73 65 73 20 74 68 61 | C++ cla|sses tha|
|000004b0| 74 20 64 6f 6e 27 74 20 | 64 65 70 65 6e 64 20 6f |t don't |depend o|
|000004c0| 6e 20 6f 6e 65 2d 61 6e | 6f 74 68 65 72 20 74 6f |n one-an|other to|
|000004d0| 6f 20 6d 75 63 68 20 28 | 74 68 75 73 20 61 69 64 |o much (|thus aid|
|000004e0| 69 6e 67 20 74 68 65 69 | 72 20 72 65 2d 75 73 65 |ing thei|r re-use|
|000004f0| 29 2c 20 73 6f 20 74 68 | 65 20 70 72 6f 67 72 61 |), so th|e progra|
|00000500| 6d 20 73 74 72 75 63 74 | 75 72 65 20 69 73 20 6e |m struct|ure is n|
|00000510| 6f 74 20 73 6f 20 74 69 | 67 68 74 6c 79 20 69 6e |ot so ti|ghtly in|
|00000520| 74 65 67 72 61 74 65 64 | 20 61 73 20 28 73 61 79 |tegrated| as (say|
|00000530| 29 20 61 20 4d 61 63 41 | 70 70 20 70 72 6f 67 72 |) a MacA|pp progr|
|00000540| 61 6d 2e 20 49 6e 20 74 | 68 65 20 73 70 69 72 69 |am. In t|he spiri|
|00000550| 74 20 6f 66 20 73 61 6d | 70 6c 65 20 61 70 70 6c |t of sam|ple appl|
|00000560| 69 63 61 74 69 6f 6e 73 | 2c 20 6d 6f 73 74 20 6f |ications|, most o|
|00000570| 66 20 74 68 65 20 65 72 | 72 6f 72 20 68 61 6e 64 |f the er|ror hand|
|00000580| 6c 69 6e 67 20 68 61 73 | 20 62 65 65 6e 20 27 6c |ling has| been 'l|
|00000590| 65 66 74 20 66 6f 72 20 | 6c 61 74 65 72 27 2e 0d |eft for |later'..|
|000005a0| 0d 41 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |.All app|lication|
|000005b0| 2d 64 6f 6d 61 69 6e 20 | 73 63 72 69 70 74 61 62 |-domain |scriptab|
|000005c0| 6c 65 20 6f 62 6a 65 63 | 74 73 20 64 65 72 69 76 |le objec|ts deriv|
|000005d0| 65 20 66 72 6f 6d 20 61 | 20 27 54 53 63 72 69 70 |e from a| 'TScrip|
|000005e0| 74 61 62 6c 65 4f 62 6a | 65 63 74 27 20 28 73 65 |tableObj|ect' (se|
|000005f0| 65 20 73 6f 75 72 63 65 | 20 66 69 6c 65 20 22 53 |e source| file "S|
|00000600| 63 72 69 70 74 61 62 6c | 65 4f 62 6a 65 63 74 73 |criptabl|eObjects|
|00000610| 2e 68 22 29 20 74 68 61 | 74 20 68 61 73 20 61 6e |.h") tha|t has an|
|00000620| 20 61 74 74 61 63 68 65 | 64 20 73 63 72 69 70 74 | attache|d script|
|00000630| 20 61 6e 64 20 69 73 20 | 61 62 6c 65 20 74 6f 20 | and is |able to |
|00000640| 61 73 73 69 73 74 20 77 | 69 74 68 20 6f 62 6a 65 |assist w|ith obje|
|00000650| 63 74 20 72 65 73 6f 6c | 75 74 69 6f 6e 20 61 6e |ct resol|ution an|
|00000660| 64 20 61 70 70 6c 65 20 | 65 76 65 6e 74 20 68 61 |d apple |event ha|
|00000670| 6e 64 6c 69 6e 67 2e 20 | 41 20 27 54 4f 62 6a 4d |ndling. |A 'TObjM|
|00000680| 6f 64 65 6c 54 6f 6b 65 | 6e 27 20 63 6c 61 73 73 |odelToke|n' class|
|00000690| 20 28 73 65 65 20 22 4f | 62 6a 4d 6f 64 65 6c 54 | (see "O|bjModelT|
|000006a0| 6f 6b 65 6e 73 2e 68 22 | 29 20 20 69 73 20 64 65 |okens.h"|) is de|
|000006b0| 66 69 6e 65 64 20 74 6f | 20 6d 61 6e 61 67 65 20 |fined to| manage |
|000006c0| 74 6f 6b 65 6e 20 72 65 | 73 6f 6c 75 74 69 6f 6e |token re|solution|
|000006d0| 20 61 6e 64 20 61 70 70 | 6c 65 20 65 76 65 6e 74 | and app|le event|
|000006e0| 20 64 69 73 70 61 74 63 | 68 69 6e 67 3b 20 74 68 | dispatc|hing; th|
|000006f0| 65 20 69 6e 74 65 72 61 | 63 74 69 6f 6e 20 6f 66 |e intera|ction of|
|00000700| 20 74 68 65 73 65 20 69 | 73 20 6d 61 6e 61 67 65 | these i|s manage|
|00000710| 64 20 66 72 6f 6d 20 61 | 20 62 75 6e 63 68 20 6f |d from a| bunch o|
|00000720| 66 20 73 74 61 74 69 63 | 20 66 75 6e 63 74 69 6f |f static| functio|
|00000730| 6e 73 20 69 6e 20 22 4f | 62 6a 4d 6f 64 65 6c 45 |ns in "O|bjModelE|
|00000740| 76 65 6e 74 73 2e 63 70 | 22 2e 20 54 68 65 20 61 |vents.cp|". The a|
|00000750| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 62 65 68 |pplicati|on's beh|
|00000760| 61 76 69 6f 75 72 20 69 | 73 20 64 65 66 69 6e 65 |aviour i|s define|
|00000770| 64 20 69 6e 20 22 41 70 | 70 6c 69 63 61 74 69 6f |d in "Ap|plicatio|
|00000780| 6e 2e 63 70 22 20 61 6e | 64 20 22 53 69 6d 70 6c |n.cp" an|d "Simpl|
|00000790| 69 46 61 63 65 2e 63 70 | 22 20 28 74 68 65 20 6c |iFace.cp|" (the l|
|000007a0| 61 74 74 65 72 20 63 6f | 6e 74 61 69 6e 73 20 74 |atter co|ntains t|
|000007b0| 68 65 20 6d 61 69 6e 20 | 70 72 6f 67 72 61 6d 20 |he main |program |
|000007c0| 66 75 6e 63 74 69 6f 6e | 29 2e 0d 0d 4d 6f 72 65 |function|)...More|
|000007d0| 20 64 65 74 61 69 6c 65 | 64 20 69 6e 66 6f 72 6d | detaile|d inform|
|000007e0| 61 74 69 6f 6e 20 69 73 | 20 74 6f 20 62 65 20 66 |ation is| to be f|
|000007f0| 6f 75 6e 64 20 69 6e 20 | 74 68 65 20 74 65 78 74 |ound in |the text|
|00000800| 20 6f 66 20 74 68 65 20 | 64 65 76 65 6c 6f 70 20 | of the |develop |
|00000810| 61 72 74 69 63 6c 65 20 | 74 68 69 73 20 74 68 69 |article |this thi|
|00000820| 73 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 69 73 |s source| code is|
|00000830| 20 69 6e 74 65 6e 64 65 | 64 20 74 6f 20 61 63 63 | intende|d to acc|
|00000840| 6f 6d 70 61 6e 79 2e 0d | 0d 0d 50 61 75 6c 20 47 |ompany..|..Paul G|
|00000850| 20 53 6d 69 74 68 0d 00 | 00 00 34 00 07 00 04 00 | Smith..|..4.....|
|00000860| ce 57 4c 00 ce 57 3c 01 | e0 02 7b 00 ce 57 40 00 |.WL..W<.|..{..W@.|
|00000870| 00 00 01 00 3c 00 02 00 | 3d 00 03 00 4c 00 02 00 |....<...|=...L...|
|00000880| 88 00 03 00 9d 00 02 01 | 4a 00 00 08 52 ff ff 00 |........|J...R...|
|00000890| 00 00 48 00 01 00 0e 00 | 0a 00 15 00 00 00 00 00 |..H.....|........|
|000008a0| 00 00 00 00 00 00 01 00 | 13 00 0e 00 14 01 00 00 |........|........|
|000008b0| 12 00 00 00 00 00 00 00 | 03 00 0f 00 0c 00 14 00 |........|........|
|000008c0| 00 00 0e 00 00 00 00 00 | 00 00 02 00 0f 00 0c 00 |........|........|
|000008d0| 14 01 00 00 0e 00 00 00 | 00 00 00 00 00 00 b4 00 |........|........|
|000008e0| 13 00 0e 00 13 00 0e 00 | 0f 00 0c 00 0f 00 0c 00 |........|........|
|000008f0| 0f 00 0c 00 0f 00 0c 00 | 0f 00 0c 00 0f 00 0c 00 |........|........|
|00000900| 0f 00 0c 00 0f 00 0c 00 | 0f 00 0c 00 0f 00 0c 00 |........|........|
|00000910| 0f 00 0c 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000920| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000930| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000940| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000950| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000960| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000970| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000980| 0e 00 0a 00 0e 00 0a 00 | 0e 00 0a 00 0e 00 0a 00 |........|........|
|00000990| 0e 00 0a 00 00 00 08 00 | 00 00 00 00 ce 5e 34 00 |........|.....^4.|
|000009a0| 00 00 16 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 0c 00 00 00 |........|........|
|000009c0| 01 00 27 00 01 01 ac 02 | 2f |..'.....|/ |
+--------+-------------------------+-------------------------+--------+--------+